package com.beamfield.dao.lab;

import com.beamfield.model.LabFileForward;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface LabFileForwardMapper {
    int deleteByPrimaryKey(Long id);

    int insert(LabFileForward record);

    int insertSelective(LabFileForward record);

    LabFileForward selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(LabFileForward record);

    int updateByPrimaryKey(LabFileForward record);

    List<LabFileForward> getFileForwardList(@Param("offset")Integer offset, @Param("limit")Integer limit,
                                            @Param("file_no")String file_no, @Param("start_time")String start_time, @Param("end_time")String end_time,
                                            @Param("beam_id")Long beam_id);

    int getCount(@Param("file_no")String file_no, @Param("start_time")String start_time, @Param("end_time")String end_time, @Param("beam_id")Long beam_id);

    List<LabFileForward> selectByFile_no(@Param("file_no")String file_no);

}